import request from '@/utils/request'

// 分页查询
export const queryUserPage=(data)=>request.post(`/user/page`,data)

//登录
export const loginUser = (data) => request.post(`/user/login`, data);
// 新增
export const addUser=(user)=>request.post("/user",user)
// 根据id查询
export const queryUserById=(id)=>request.get(`/user/${id}`)
// 修改
export const updateUser=(user)=>request.put("/user",user)

//删除
export const deleteUser = (id) => request.delete(`/user/${id}`);